import request from '@/utils/request'
// ---------------- 管理员 ----------------
/**
 * 列表
 * @param {array} params 请求参数
 */
// 添加本地团分类
export function addCategory(data) {
    return request({
        url: '/adminapi/local/merchant/category/add',
        method: 'post',
        data: data
    })
}
// 修改本地团分类
export function editCategory(data) {
    return request({
        url: '/adminapi/local/merchant/category/edit',
        method: 'post',
        data: data
    })
}
// 删除本地团分类
export function delCategory(data) {
    return request({
        url: '/adminapi/local/merchant/category/del',
        method: 'post',
        data: data
    })
}
// 获取详情本地团分类
export function getCategoryDetail(data) {
    return request({
        url: '/adminapi/local/merchant/category/detail',
        method: 'post',
        data: data
    })
}
// 获取详情本地团列表
export function getCategoryList(data) {
    return request({
        url: '/adminapi/local/merchant/category/list',
        method: 'post',
        data: data
    })
}

// 获取本地团商户列表
export function getMerchantList(data) {
    return request({
        url: '/adminapi/local/merchant/list',
        method: 'post',
        data: data
    })
}
// 添加本地团商户
export function addMerchant(data) {
    return request({
        url: '/adminapi/local/merchant/add',
        method: 'post',
        data: data
    })
}
// 修改本地团商户
export function editMerchant(data) {
    return request({
        url: '/adminapi/local/merchant/edit',
        method: 'post',
        data: data
    })
}
// 获取本地团商户详情
export function getMerchantDetail(data) {
    return request({
        url: '/adminapi/local/merchant/detail',
        method: 'post',
        data: data
    })
}
// 删除本地团商户列表
export function delMerchant(data) {
    return request({
        url: '/adminapi/local/merchant/del',
        method: 'post',
        data: data
    })
}
// 修改本地团商户状态
export function merchantChange(data) {
    return request({
        url: '/adminapi/local/merchant/change',
        method: 'post',
        data: data
    })
}
// 获取本地团商品列表
export function getLocalGoodsList(data) {
    return request({
        url: '/adminapi/local/merchant/goods/list',
        method: 'post',
        data: data
    })
}
// 修改本地团商品上下架
export function localGoodsChange(data) {
    return request({
        url: '/adminapi/local/merchant/goods/change',
        method: 'post',
        data: data
    })
}
// 删除本地团商品
export function delLocalGoods(data) {
    return request({
        url: '/adminapi/local/merchant/goods/del',
        method: 'post',
        data: data
    })
}
// 获取本地团商品详情
export function getLocalGoodsDetail(data) {
    return request({
        url: '/adminapi/local/merchant/goods/detail',
        method: 'post',
        data: data
    })
}
// 修改本地团商品
export function editLocalGoods(data) {
    return request({
        url: '/adminapi/local/merchant/goods/edit',
        method: 'post',
        data: data
    })
}
// 添加本地团商品
export function addLocalGoods(data) {
    return request({
        url: '/adminapi/local/merchant/goods/add',
        method: 'post',
        data: data
    })
}
// 添加本地团核销员
export function addLocalWriteOff(data) {
    return request({
        url: '/adminapi/local/merchant/writeOff/add',
        method: 'post',
        data: data
    })
}
// 修改本地团核销员
export function editLocalWriteOff(data) {
    return request({
        url: '/adminapi/local/merchant/writeOff/edit',
        method: 'post',
        data: data
    })
}
// 获取本地团核销员详情
export function getLocalWriteOffDetail(data) {
    return request({
        url: '/adminapi/local/merchant/writeOff/detail',
        method: 'post',
        data: data
    })
}
// 删除本地团核销员
export function delLocalWriteOff(data) {
    return request({
        url: '/adminapi/local/merchant/writeOff/del',
        method: 'post',
        data: data
    })
}
// 获取本地团核销员列表
export function getLocalWriteOffList(data) {
    return request({
        url: '/adminapi/local/merchant/writeOff/list',
        method: 'post',
        data: data
    })
}